//
//  BookCoverColCell.swift
//  WalkNovel
//
//  Created by Kevin on 2023/7/13.
//

import UIKit

class BookCoverColCell: UICollectionViewCell {
    
    lazy var bookImage: UIImageView = {
        let image = UIImageView()
        image.contentMode = .scaleAspectFill
        image.wn_cornerWithBorder(8)
        return image
    }()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        addSubview(bookImage)
        bookImage.snp.makeConstraints { (make) in
            make.top.equalTo(NaviTotalHeight+16)
            make.centerX.equalToSuperview()
            make.size.equalTo(CGSize.init(width: scaleWidth(223), height: scaleWidth(346)))
        }
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
